package com.mobile.challenge.user

/**
 * @Author Touge
 * @Date 2020/9/17 17:05
 * @Description
 */
class ClockHelper {

    companion object {
        @Volatile
        private var instance: ClockHelper? = null

        fun getInstance(): ClockHelper {
            return instance ?: synchronized(this) {
                instance ?: ClockHelper().also { instance = it }
            }
        }
    }


    fun getClockString(clockType: Int): String {
        return when (clockType) {
            ClockType.HOME -> {
                "WFH"
            }
            ClockType.OFFICE -> {
                "Office"
            }
            ClockType.LEAVE -> {
                "Vacation"
            }
            else -> {
                "NA"
            }
        }
    }


}